<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <a class="uk-button uk-button-primary" href="{url('index')}"> 品牌列表</a>
    </div>
    <div class="page-action">
        <a class="uk-button uk-button-danger" href="javascript:location.reload();"><i class="fa fa-refresh"></i></a>
    </div>
</div>

<div class="uk-margin-top">
    <div class="uk-card uk-card-default uk-card-small dux-panel">
        <div class="uk-card-header">{$assignName}品牌</div>
        <div class="uk-card-body">
            <form class="dux-form uk-form   uk-form-horizontal " data-dux="form-bind" method="post">
                <fieldset>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">品牌名称</label>
                        <div class="uk-form-controls">
                            <input type="text" name="name" value="{$info.name}" placeholder="请输入品牌名称" required>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">品牌主页</label>
                        <div class="uk-form-controls">
                            <input type="text" name="home" value="{$info.home}" placeholder="品牌主页网址">
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">品牌标志</label>
                        <div class="uk-form-controls">
                            <!--if{$info.logo}-->
                            <div class="uk-margin-bottom" style="">
                                <img src="{$info.logo}" class="uk-image-thumbnail" width="200"  alt=""/>
                            </div>
                            <!--{/if}-->
                            <div class="uk-input-group">
                                <input type="text" class="uk-form-field" name="logo" id="logo" value="{$info.logo}"
                                       placeholder="可选,上传品牌LOGO图片">
                                        <span class="uk-input-group-btn">
                                            <button class="uk-button uk-button-default" type="button" data-dux="form-upload"
                                                    data-target="#logo" data-type="jpg,png,bmp"><i
                                                    class="fa fa-upload"></i></button>
                                        </span>
                            </div>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">品牌顺序</label>
                        <div class="uk-form-controls">
                            <input type="number" name="sort" value="{$info.sort}" placeholder="请输入顺序" >
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">品牌描述</label>
                        <div class="uk-form-controls">
                            <textarea name="description" placeholder="可选,品牌描述信息">{$info.description}</textarea>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">状态</label>
                        <div class="uk-form-controls uk-form-controls-text">
                            <?php $info['status'] = isset($info['status']) ? $info['status'] : 1;  ?><div class="uk-grid">
                            <label>
                                <!--if{$info['status']}-->
                                <input name="status" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <input name="status" value="1" type="radio">
                                <!--{/if}-->
                                正常
                            </label>
                            <label>
                                <!--if{!$info['status']}-->
                                <input name="status" checked="checked" value="0" type="radio">
                                <!--{else}-->
                                <input name="status" value="0" type="radio">
                                <!--{/if}-->
                                禁用
                            </label>
                        </div></div>
                    </div>

                    <div class="uk-form-group">
                        <div class="uk-form-controls">
                            <input type="hidden" name="brand_id" value="{$info.brand_id}">
                            <button class="uk-button uk-button-primary" type="submit" disabled>保存</button>
                        </div>
                    </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>